package com.cnd.scm.orm.constant;

public enum IdType {

    AUTO(0),//数据库ID自增
    NONE(1),//该类型为未设置主键类型
    INPUT(2),//用户输入ID
    ID_WORKER(3),//Long类型的主键
    UUID(4),//UUID类型的主键 UUID.randomUUID().toString().toUpperCase().replace("-", "");
    ID_WORKER_STR(5);//字符串全局唯一ID

    private final int key;

    private IdType(int key) {
        this.key = key;
    }

    public int getKey() {
        return this.key;
    }
}
